package com.thinkingstar.iads.cs.sys.enumerate;

import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

public enum SUBTYPE {
   系统资源("0","系统资源"),
    业务资源("1","业务资源");

    private final String id;
    private final String code;

    SUBTYPE(String id, String code) {
        this.id = id;
        this.code = code;
    }

    public String getId() {
        return id;
    }

    public String getCode() {
        return code;
    }


    public static List<SUBTYPE> getAllCode(){
        List <SUBTYPE> all_data = new LinkedList<>();

//        Map<String,Object> jsonobj = new HashMap<String, Object>();
//        jsonobj.put(SUBTYPE.系统资源.id,SUBTYPE.系统资源.code);
//        jsonobj.put(SUBTYPE.业务资源.id,SUBTYPE.业务资源.code);

        return all_data;
    }

//    public static List<SUBTYPE> getAllCodeMap(){
//        Map<String,SUBTYPE> all_data = new HashMap<>();
//        all_data.put(SUBTYPE.业务资源.id,SUBTYPE.业务资源);
//        all_data.put(SUBTYPE.系统资源.id,SUBTYPE.系统资源);
//        return all_data;
//    }

}
